package com.maochang.top.service.impl;



import com.maochang.top.dao.UserDao;
import com.maochang.top.dao.impl.UserDaoImpl;
import com.maochang.top.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {


    private UserDao userDaoImpl;


    @Autowired
    public void setUserDaoImpl(UserDao userDaoImpl) {
        this.userDaoImpl = userDaoImpl;
    }

    @Override
    public boolean add() {
        System.out.println("业务层调用保存方法");
        System.out.println(userDaoImpl.save());
        return true;
    }

}
